<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
 插件菜单
*/
defined('BY_JYA') or exit('error');
$basic=$this->plugin_setting('setting');
$shifutitle=$basic['is_zhuang']?'专家':'师傅';
$menus=array(
		array('title'=>'基本配置','child'=>array(
			array('url'=>'jy_wxshifu/index/','title'=>'基本设置'),
			array('url'=>'jy_wxshifu/diyfrom/','title'=>'自定义表单'),
			array('url'=>'jy_wxshifu/basic.module_home/cover/ac=index&type=3','title'=>$shifutitle.'入口'),
			array('url'=>'jy_wxshifu/basic.module_home/cover/ac=apply&type=3','title'=>'申请入口'),
		)),
		array('title'=>'网点管理','child'=>array(
			array('url'=>'jy_wxshifu/shifu_area/','title'=>'网点管理'),
			array('url'=>'jy_wxshifu/order/','title'=>'订单管理'),
			array('url'=>'jy_wxshifu/baobei/','title'=>'异常报备'),
		)),
		array('title'=>'技术员','child'=>array(
			array('url'=>'jy_wxshifu/worker/','title'=>'技术员管理'),
			array('url'=>'jy_wxshifu/workerdata/','title'=>'技术员数据'),
			array('url'=>'jy_wxshifu/sendlog_pc//type=1','title'=>'服务记录'),
			array('url'=>'jy_wxshifu/commission/','title'=>'佣金记录'),
		)),
		array('title'=>$shifutitle,'child'=>array(
			array('url'=>'jy_wxshifu/shifu_in/','title'=>'入驻审核'),
			array('url'=>'jy_wxshifu/shifu/','title'=>$shifutitle.'管理'),
			array('url'=>'jy_wxshifu/shifudata/','title'=>$shifutitle.'数据'),
			array('url'=>'jy_wxshifu/sendlog_pc//type=0','title'=>'服务记录'),
		)),
		array('title'=>'评价管理','child'=>array(
			array('url'=>'jy_wxshifu/comment/','title'=>'评价列表'),
			array('url'=>'jy_wxshifu/jianglog//type=0','title'=>'奖励记录'),
			array('url'=>'jy_wxshifu/jianglog//type=1','title'=>'惩罚记录'),
		)),
		array('title'=>'提现','child'=>array(
			array('url'=>'jy_wxshifu/shifu_tixian//type=0','title'=>$shifutitle.'提现管理'),
			array('url'=>'jy_wxshifu/shifu_tixian//type=1','title'=>'技术员提佣管理'),
		)),
		array('title'=>'消息提醒','child'=>array(
			array('url'=>'core/setting.msgset/list/plugin_name=jy_wxshifu','title'=>'消息开启设置'),
			array('url'=>'core/setting.msgtpl/list/plugin_name=jy_wxshifu','title'=>'微信模板库'),
		)),
);
if($basic['is_zhuang']){
	unset($menus[5]['child'][1]);
	unset($menus[2]);
}
return $menus;

